package com.ld.data;

import com.alibaba.fastjson2.JSON;
import com.ld.data.properties.LDProperties;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.ComponentScan;

@Slf4j
@SpringBootApplication
public class LDFileDataServerApplication implements CommandLineRunner {

	@Autowired
	private LDProperties ldProperties;

	public static void main(String[] args) {
		SpringApplication.run(LDFileDataServerApplication.class, args);
	}

	@Override
	public void run(String... args) throws Exception {
		log.info("===============================================");
		log.info("LDFileDataServerApplication Start Success");
		log.debug(JSON.toJSONString(ldProperties));
		log.info("===============================================");
	}
}
